/**
 * Created by yuwenteng on 2017/9/18.
 */
$(function () {
    $.ajax({
        type:'post',
        url:'/user/getUserInfo',
        data:'',
        success:function (data) {
            if (data.roles != null) {
                $.each(data.roles,function (index,item) {
                    if (item.role == "main_teacher") {
                        $("#attend_info").hide();
                        $("#reattend_info").hide();
                        $("#reattendtask_info").hide();
                    }
                })
            }
            $(".user_head_img").attr("src","/upload/"+data.headImage);
            $(".user_name").html(data.realName);
        }
    });
});

